#ifndef TINX_ASSERT_H
#define TINX_ASSERT_H

void assert_failure(char *condition, char *file, int line);

#define assert(condition)                   \
    if (condition)                          \
        ;                                   \
    else                                    \
        assert_failure(#condition, __BASE_FILE__, __LINE__);

void panic_spin(char *file, int line, char *fmt, ...);

#define panic(str, args...) panic_spin(__BASE_FILE__, __LINE__, str, ##args);

#endif